'use strict';

function choose_divisible_integer(collection_a, collection_b) {
  var arr=[];

  for(let ai=0;ai<collection_a.length;ai++){
    for(let bi=0;bi<collection_b.length;bi++){
      if(collection_a[ai]%collection_b[bi]==0){
        arr.push(collection_a[ai]);
      }
    }
    
  }

  console.log(arr);
  return arr; //在这里写入代码
}
module.exports = choose_divisible_integer;

var collection_a = [4,7,9,25,16,21,64,32,35,49];
var collection_b = [2,3,5];

choose_divisible_integer(collection_a, collection_b)
